'''
Created on Oct 19, 2012

@author: Artur
'''
import re
import utils

width = 15
data = utils.ParseInstance('C:/workspace/pceps/data/data_2000_dirty')
(attrs, head_str) = utils.ParseSchema('C:/workspace/FD_Repair/test/uis/schema', width)


(block_map, cell_map) = utils.ParseBlockAndCellMap('C:/workspace/pceps/out.txt')


utils.PrintoutBlockMap(block_map, 'out.txt', data, width, head_str, len(attrs))


'''
Parse and print the OLD BLOCKING ALGORITHM results
'''
block_map = utils.ParseBlockMap('C:/workspace/FD_Repair/out.txt')
utils.PrintoutBlockMap(block_map, 'out_old.txt', data, width, head_str, len(attrs))